tests/go_test.rb in tins-1.20.0 vs tests/go_test.rb in tins-1.20.1

- old
+ new

@@ -61,9 +61,12 @@ def test_defaults r = go('bv:', args = %w[ -v bar ], defaults: { ?b => true, ?v => 'foo' }) assert_equal({ ?b => 1, 'v' => 'bar' }, r) assert_equal [], args + r = go('bv:', args = %w[ ~b -v bar ], defaults: { ?b => true, ?v => 'foo' }) + assert_equal({ ?b => false, 'v' => 'bar' }, r) + assert_equal [], args r = go('bv:', args = %w[ -b -v bar ], defaults: { ?b => 22, ?v => 'foo' }) assert_equal({ ?b => 23, 'v' => 'bar' }, r) assert_equal [], args r = go('bv:', args = %w[ -b ], defaults: { ?b => false, ?v => 'foo' }) assert_equal({ ?b => 1, 'v' => 'foo' }, r)