mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
wrote a simple test for libs
This commit is contained in:
10
scripts/test/lib/standard.toy
Normal file
10
scripts/test/lib/standard.toy
Normal file
@@ -0,0 +1,10 @@
|
||||
//test the standard library
|
||||
{
|
||||
import standard;
|
||||
|
||||
//this depends on external factors, so only check the length
|
||||
assert clock().length() == 24, "clock() import failed";
|
||||
}
|
||||
|
||||
|
||||
print "All good";
|
||||
Reference in New Issue
Block a user