mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-16 07:14:07 +10:00
Moved type coersion check, functions can be compared
Also updated some tagged comments
This commit is contained in:
@@ -5,6 +5,7 @@ a["beta"] = 6;
|
||||
print a;
|
||||
assert a == ["alpha": 1, "beta": 6, "gamma": 3], "1-D tables failed";
|
||||
|
||||
//BUG: nested tables causes an issue under GDB, idk why the tests pass without it
|
||||
//nested
|
||||
var b = [
|
||||
"outer": ["inner": true],
|
||||
|
||||
@@ -201,7 +201,7 @@ int test_value_hashing(void) {
|
||||
Toy_hashValue(f) != 0 ||
|
||||
Toy_hashValue(i) != 4147366645 ||
|
||||
Toy_hashValue(s) != 994097935 ||
|
||||
TOY_VALUE_AS_STRING(s)->info.cachedHash == 0 || //TODO: check this
|
||||
TOY_VALUE_AS_STRING(s)->info.cachedHash == 0 ||
|
||||
Toy_hashValue(a) != 2544446955
|
||||
)
|
||||
{
|
||||
@@ -598,6 +598,7 @@ int main(void) {
|
||||
}
|
||||
|
||||
//TODO: references
|
||||
//TODO: type coersions
|
||||
|
||||
return total;
|
||||
}
|
||||
Reference in New Issue
Block a user