Sha256: 09005f37fdf3dff1881b2ba9eb0fb42a93c4dc7b7f9378fd12103696ae4456b7
Contents?: true
Size: 588 Bytes
Versions: 116
Compression:
Stored size: 588 Bytes
Contents
-module('tgen_hello-world'). -behaviour(tgen). -export([ available/0, version/0, generate_test/1 ]). -spec available() -> true. available() -> true. version() -> 2. generate_test(#{description := Desc, expected := Exp, property := Prop}) -> TestName = tgen:to_test_name(Desc), Expected = binary_to_list(Exp), Property = binary_to_list(Prop), Fn = tgs:simple_fun(TestName, [ tgs:call_macro("assertEqual", [ tgs:value(Expected), tgs:call_fun("hello_world:" ++ Property, [])])]), {ok, Fn, [{Prop, []}]}.
Version data entries
116 entries across 116 versions & 1 rubygems