From 67699a6dc7537c342060f428926219f3b08a4ee2 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Mon, 26 Dec 2011 23:11:34 -0500 Subject: [PATCH] added more tests for Grammar.View. --- javascript/test/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/javascript/test/index.html b/javascript/test/index.html index 453affa..9576cb2 100644 --- a/javascript/test/index.html +++ b/javascript/test/index.html @@ -24,17 +24,17 @@

}; var view = new Grammar.View(); var dogView = new Grammar.View(dog); - var string = "%(name)s poke[s] %(o_name_pos)s soul."; + var string = "%(name)s poke[s] %(o_name_pos)s soul with %(his)s paw."; equal(view.parseString(string, view.makeGrammarDict(dog, cat)), - "the dog pokes the cat's soul."); + "the dog pokes the cat's soul with his paw."); equal(view.parseString(string, view.makeGrammarDict(cat, dog)), - "the cat pokes the dog's soul."); + "the cat pokes the dog's soul with her paw."); equal(dogView.parseString(string, dogView.makeGrammarDict(dog, cat)), - "you poke the cat's soul."); + "you poke the cat's soul with your paw."); equal(dogView.parseString(string, dogView.makeGrammarDict(cat, dog)), - "the cat pokes your soul."); + "the cat pokes your soul with her paw."); }); test("utils.extend()", function() {