2014-08-14 16:40:56 +02:00
|
|
|
require_relative "helper"
|
|
|
|
|
|
|
|
class SimpleObjectWithAttributes
|
|
|
|
end
|
|
|
|
|
|
|
|
class BasicSof < MiniTest::Test
|
|
|
|
|
|
|
|
def test_true
|
2014-08-14 18:24:18 +02:00
|
|
|
out = Sof::Writer.write(true)
|
|
|
|
assert_equal "true" , out
|
2014-08-14 16:40:56 +02:00
|
|
|
end
|
|
|
|
def test_num
|
2014-08-14 18:24:18 +02:00
|
|
|
out = Sof::Writer.write(124)
|
|
|
|
assert_equal "124" , out
|
2014-08-14 16:40:56 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|