* 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>
33 lines
737 B
Plaintext
33 lines
737 B
Plaintext
to_str
|
|
asdf
|
|
asdf
|
|
This is a longer sentence
|
|
This is a longer sentence
|
|
the quick brown fox jumped over the lazy dog's escaped characters
|
|
the quick brown fox jumped over the lazy dog's escaped characters
|
|
to_repr
|
|
'to_repr'
|
|
'asdf'
|
|
'This is a longer sentence'
|
|
'the quick brown fox jumped over the lazy dog\'s escaped characters'
|
|
'I would\ninclude a\nmultiline string if\nit wasn\'t such a\npain to\ntest in the\n.expect file'
|
|
len
|
|
4
|
|
25
|
|
65
|
|
__add__
|
|
asdfasdf
|
|
asdfasdfasdf
|
|
asdfThis is a longer sentence
|
|
This is a longer sentenceasdf
|
|
__mul__
|
|
asdfasdfasdfasdf
|
|
This is a longer sentenceThis is a longer sentenceThis is a longer sentenceThis is a longer sentenceThis is a longer sentence
|
|
'asdfasdfasdfasdfasdfasdf'
|
|
constructor
|
|
asdf
|
|
1234
|
|
1.0
|
|
true
|
|
false
|