Sha256: ca9036b70317192d16f9a60e63ffa3b59505c17b66f7826788e8840e727d9394

Contents?: true

Size: 1.03 KB

Versions: 116

Compression:

Stored size: 1.03 KB

Contents

-module('tgen_rna-transcription').

-behaviour(tgen).

-export([
    available/0,
    version/0,
    generate_test/1
]).

-spec available() -> true.
available() ->
    true.

version() -> 2.

generate_test(#{description := Desc, expected := null, property := <<"toRna">>, dna := DNA}) ->
    TestName = tgen:to_test_name(Desc),
    Property = "to_rna",

    Fn = tgs:simple_fun(TestName, [
        tgs:call_macro("assertMatch", [
            tgs:value(error),
            tgs:call_fun("rna_transcription:" ++ Property, [
                tgs:value(binary_to_list(DNA))])])]),

    {ok, Fn, [{Property, ["Strand"]}]};
generate_test(#{description := Desc, expected := Exp, property := <<"toRna">>, dna := DNA}) ->
    TestName = tgen:to_test_name(Desc),
    Property = "to_rna",

    Fn = tgs:simple_fun(TestName, [
        tgs:call_macro("assertMatch", [
            tgs:value(binary_to_list(Exp)),
            tgs:call_fun("rna_transcription:" ++ Property, [
                tgs:value(binary_to_list(DNA))])])]),

    {ok, Fn, [{Property, ["Strand"]}]}.

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.179 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.178 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.177 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.176 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.175 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.174 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.173 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.172 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.171 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.170 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.169 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.167 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.166 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.165 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.164 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.163 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.162 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.161 tracks/erlang/testgen/src/tgen_rna-transcription.erl
trackler-2.2.1.160 tracks/erlang/testgen/src/tgen_rna-transcription.erl