* I noticed that `fn call(...)` in all objects was identical, so I made a macro for it. This should make things a little easier to read, since do_call is about 30 lines a pop. * Bool has a constructor now, and a to_int and to_float implementations * Add tests for constructors and add new bool tests Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
56 lines
318 B
Plaintext
56 lines
318 B
Plaintext
__not__
|
|
false
|
|
true
|
|
false
|
|
true
|
|
true
|
|
false
|
|
true
|
|
false
|
|
__and__
|
|
false
|
|
false
|
|
true
|
|
false
|
|
__or__
|
|
true
|
|
true
|
|
true
|
|
false
|
|
__eq__
|
|
true
|
|
false
|
|
true
|
|
false
|
|
true
|
|
true
|
|
false
|
|
false
|
|
false
|
|
false
|
|
true
|
|
true
|
|
__ne__
|
|
false
|
|
true
|
|
false
|
|
true
|
|
false
|
|
false
|
|
true
|
|
true
|
|
true
|
|
true
|
|
false
|
|
false
|
|
constructor
|
|
false
|
|
false
|
|
false
|
|
false
|
|
true
|
|
true
|
|
true
|
|
true
|
|
true
|