-
-
Notifications
You must be signed in to change notification settings - Fork 4
kotlin
Pannous edited this page Sep 26, 2021
·
2 revisions
https://github.com/pannous/cheats/blob/master/cheats.kotlin
Good language except some fundamentals: Not all of the following math assertions hold in kotlin:
assert_is("1 ⋁ 1 ∧ 0", 1);
assert_is("1 ⋁ 0 ∧ 1", 1);
assert_is("1 ⋁ 0 ∧ 0", 1);
assert_is("0 ⋁ 1 ∧ 0", 0);
assert_is("0 ⋁ 0 ∧ 1", 0);
assert_is("true or true and false", true);
assert_is("true or false and true", true);
assert_is("true or false and false", true);
assert_is("false or true and false", false);
assert_is("false or false and true", false);
Failing and basic logic is almost unforgivable!