kentfredric / ideas

Draft ideas for things that are more organised and feedbacky than gists with mkdn as default
1 stars 0 forks source link

Result oriented tester #2

Open kentfredric opened 9 years ago

kentfredric commented 9 years ago

Just some thoughts I had today on enhancing the expressiveness of test code and ability to reuse data easily:

result( somefn() ).isTrue() == ok( somefn() )
result().isFalse()
result().is(5)
result().equals("string")
result().matches(qr//)
result().isArray().