Sha256: 4b4c495fe325b0a0f8542f5b2c8e31c8e47f20f0df3e06cccb2a9bdf6c7fcf28

Contents?: true

Size: 594 Bytes

Versions: 8

Compression:

Stored size: 594 Bytes

Contents

require 'wlang'
require 'test/unit'
module WLang
  class OtherSymbolsTest < Test::Unit::TestCase
    
    def test_on_parentheses
      template = "+{who}"
      assert_equal 'blambeau', WLang.instantiate(template, {'who' => 'blambeau'}, 'wlang/active-string', :braces).to_s
      template = "+(who)"
      assert_equal 'blambeau', WLang.instantiate(template, {'who' => 'blambeau'}, 'wlang/active-string', :parentheses).to_s
      template = "+[who]"
      assert_equal 'blambeau', WLang.instantiate(template, {'who' => 'blambeau'}, 'wlang/active-string', :brackets).to_s
    end
    
  end
end

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
wlang-0.10.2 test/unit/wlang/othersymbols_test.rb
wlang-0.10.1 ./test/unit/wlang/othersymbols_test.rb
wlang-0.10.1 test/unit/wlang/othersymbols_test.rb
wlang-0.10.0 test/unit/wlang/othersymbols_test.rb
wlang-0.9.2 test/unit/wlang/othersymbols_test.rb
wlang-0.8.5 test/wlang/othersymbols_test.rb
wlang-0.8.4 test/wlang/othersymbols_test.rb
wlang-0.9.1 test/unit/wlang/othersymbols_test.rb