SourceType = require("../src/source_type")
parser = new SourceType("javascript", ["//="]).parser

it "should understand print directive", ->
  blocks = parser.parse("//= print 'hello!'")
  blocks[0].should.equal("hello!")

it "should understand print directive with {{}}", ->
  blocks = parser.parse("//= {{ 'hello!' }}")
  blocks[0].should.equal("hello!")

it "should understand print directive with =", ->
  blocks = parser.parse("//== 'hello!'")
  blocks[0].should.equal("hello!")