Sha256: 33f5d9dd4776c029bb54eaa5760e848459b928cd78989beed82563cc3b0ae41b
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
When /^I decode the string ('|")(.*)\1$/ do |quote,string| @result = LaTeX.decode(string) end Then /^the result should be ('|")(.*)\1$/ do |quote,value| expect(@result).to eq(value) end # For whitespace or other characters that are hard to read in source code: Then /^I should get '([^']*)' \+ U\+(\h{4,}) \+ '([^']*)'$/ do |pre,code,post| expect(@result).to eq(pre + code.hex.chr(Encoding::UTF_8) + post) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
latex-decode-0.4.0 | features/step_definitions/latex.rb |