spec/syntax/nodes/test_contract.rb in finitio-0.7.0.pre.rc2 vs spec/syntax/nodes/test_contract.rb in finitio-0.7.0.pre.rc3

- old
+ new

@@ -94,9 +94,14 @@ [:fn, [:parameters, "s"], [:source, "DateTime.parse(s)"]], [:fn, [:parameters, "d"], [:source, "d.to_s"]] ] ]) end + + it 'is equal to itself by code' do + j = Syntax.parse(input, root: "contract").compile(type_factory, nil) + expect(j).to eql(compiled) + end end context 'A contract with external dressers' do let(:input){ '<iso> .String .ExternalContract' }