require File.dirname(__FILE__) + '/abstract_unit' class JsonFoo def initialize(a, b) @a, @b = a, b end end class TestJSONEmitters < Test::Unit::TestCase TrueTests = [[ true, %(true) ]] FalseTests = [[ false, %(false) ]] NilTests = [[ nil, %(null) ]] NumericTests = [[ 1, %(1) ], [ 2.5, %(2.5) ]] StringTests = [[ 'this is the string', %("this is the string") ], [ 'a "string" with quotes