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