loose_tight_dictionary 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/loose_tight_dictionary.rb +1 -0
- data/test/test_loose_tight_dictionary.rb +6 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
@@ -60,6 +60,7 @@ class TestLooseTightDictionary < Test::Unit::TestCase
|
|
60
60
|
:blockings => @blockings,
|
61
61
|
:positives => @positives,
|
62
62
|
:negatives => @negatives,
|
63
|
+
:blocking_only => @blocking_only,
|
63
64
|
:logger => $logger,
|
64
65
|
:tee => $tee
|
65
66
|
end
|
@@ -70,11 +71,14 @@ class TestLooseTightDictionary < Test::Unit::TestCase
|
|
70
71
|
if ENV['OLD'] == 'true' or ENV['ALL'] == 'true'
|
71
72
|
should "optionally only pay attention to things that match blockings" do
|
72
73
|
assert_equal @a_right, ltd.left_to_right(@a_left)
|
73
|
-
|
74
|
+
|
75
|
+
clear_ltd
|
76
|
+
@blocking_only = true
|
74
77
|
assert_equal nil, ltd.left_to_right(@a_left)
|
78
|
+
|
75
79
|
clear_ltd
|
80
|
+
@blocking_only = true
|
76
81
|
@blockings.push ['/dash/i']
|
77
|
-
ltd.blocking_only = true
|
78
82
|
assert_equal @a_right, ltd.left_to_right(@a_left)
|
79
83
|
end
|
80
84
|
|