diff options
author | Björn Gustavsson <[email protected]> | 2012-12-18 14:38:53 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-12-18 14:44:09 +0100 |
commit | f9acb168d947964bf1f943b5f371ffa0f14113e3 (patch) | |
tree | 4a8410d0dc65900f1a40f138965d44091b5d3310 /lib/asn1/test/asn1_SUITE.erl | |
parent | 86b10438ec7f310e1bf5aa8c3c23e6c0bb45cefc (diff) | |
download | otp-f9acb168d947964bf1f943b5f371ffa0f14113e3.tar.gz otp-f9acb168d947964bf1f943b5f371ffa0f14113e3.tar.bz2 otp-f9acb168d947964bf1f943b5f371ffa0f14113e3.zip |
Simplify testCompactBitString by introducing roundtrip functions
Also run the test case for all back-ends.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE.erl')
-rw-r--r-- | lib/asn1/test/asn1_SUITE.erl | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl index 02424c7983..cc96951fd3 100644 --- a/lib/asn1/test/asn1_SUITE.erl +++ b/lib/asn1/test/asn1_SUITE.erl @@ -20,19 +20,10 @@ -module(asn1_SUITE). --define(only_per(Func), - if Rule =:= per -> Func; - true -> ok - end). -define(only_ber(Func), if Rule =:= ber -> Func; true -> ok end). --define(only_uper(Func), - case Rule of - uper -> Func; - _ -> ok - end). -compile(export_all). @@ -320,12 +311,12 @@ testCompactBitString(Config, Rule, Opts) -> asn1_test_lib:compile("PrimStrings", Config, [Rule, compact_bit_string|Opts]), testCompactBitString:compact_bit_string(Rule), - ?only_uper(testCompactBitString:bit_string_unnamed(Rule)), - ?only_per(testCompactBitString:bit_string_unnamed(Rule)), - ?only_per(testCompactBitString:ticket_7734(Rule)), - ?only_per(asn1_test_lib:compile("Constraints", Config, - [Rule, compact_bit_string|Opts])), - ?only_per(testCompactBitString:otp_4869(Rule)). + testCompactBitString:bit_string_unnamed(Rule), + testCompactBitString:bit_string_unnamed(Rule), + testCompactBitString:ticket_7734(Rule), + asn1_test_lib:compile("Constraints", Config, + [Rule, compact_bit_string|Opts]), + testCompactBitString:otp_4869(Rule). testPrimStrings(Config) -> test(Config, fun testPrimStrings/3). testPrimStrings(Config, Rule, Opts) -> |