Fixing assertion in py-binds test.

This commit is contained in:
jordi.saludes
2010-09-01 11:10:24 +00:00
parent 962f627283
commit 2cd1e67441
2 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
src=../../src
import=-i$(src)/runtime/haskell:$(src)/compiler
cbind=../c-bindings
pythoninc=/usr/include/python2.5
pythoninc=/usr/include/python2.6
debug= #-optc '-DDEBUG=1'
exdir=../../examples/tutorial/embedded
@@ -33,4 +33,4 @@ PyGF.hs: PyGF.hsc
hsc2hs -I$(pythoninc) $<
Query.pgf:
gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf
gf --make $(exdir)/QueryEng.gf $(exdir)/QuerySpa.gf

View File

@@ -18,7 +18,7 @@ samples = [
def lang2iso(l):
s = rmprefix(l)
assert(s[:5],"Query")
assert s[:5]=="Query"
return s[5:].lower()
def exp2str(e):
@@ -89,7 +89,6 @@ class TestParsing(unittest.TestCase):
self.pgf = "Query.pgf"
def test_parse(self):
s = self.lexed[0]
pgf = gf.read_pgf(self.pgf)
l = gf.read_language(self.lang)
for abs,cnc in self.lexed: