mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Fixing assertion in py-binds test.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user