Skip to content

Commit 1780c4e

Browse files
committed
Add model test to SysInfo test suite
1 parent e24a740 commit 1780c4e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/SysInfo_test.ring

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SysInfoTest {
2525
func runAllTests() {
2626
? "Starting SysInfo Test Suite..."
2727

28+
testModel()
2829
testHostname()
2930
testUsername()
3031
testOS()
@@ -45,6 +46,13 @@ class SysInfoTest {
4546
? "All tests completed successfully!"
4647
}
4748

49+
func testModel() {
50+
? "Testing model()..."
51+
model = sysInfo.model()
52+
assert(!isNull(model), "Model should not be null")
53+
assert(len(model) > 0, "Model should not be empty")
54+
}
55+
4856
func testHostname() {
4957
? "Testing hostname()..."
5058
hostname = sysInfo.hostname()

0 commit comments

Comments
 (0)