mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
Fixing assertion in py-binds test.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
src=../../src
|
src=../../src
|
||||||
import=-i$(src)/runtime/haskell:$(src)/compiler
|
import=-i$(src)/runtime/haskell:$(src)/compiler
|
||||||
cbind=../c-bindings
|
cbind=../c-bindings
|
||||||
pythoninc=/usr/include/python2.5
|
pythoninc=/usr/include/python2.6
|
||||||
debug= #-optc '-DDEBUG=1'
|
debug= #-optc '-DDEBUG=1'
|
||||||
exdir=../../examples/tutorial/embedded
|
exdir=../../examples/tutorial/embedded
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ samples = [
|
|||||||
|
|
||||||
def lang2iso(l):
|
def lang2iso(l):
|
||||||
s = rmprefix(l)
|
s = rmprefix(l)
|
||||||
assert(s[:5],"Query")
|
assert s[:5]=="Query"
|
||||||
return s[5:].lower()
|
return s[5:].lower()
|
||||||
|
|
||||||
def exp2str(e):
|
def exp2str(e):
|
||||||
@@ -89,7 +89,6 @@ class TestParsing(unittest.TestCase):
|
|||||||
self.pgf = "Query.pgf"
|
self.pgf = "Query.pgf"
|
||||||
|
|
||||||
def test_parse(self):
|
def test_parse(self):
|
||||||
s = self.lexed[0]
|
|
||||||
pgf = gf.read_pgf(self.pgf)
|
pgf = gf.read_pgf(self.pgf)
|
||||||
l = gf.read_language(self.lang)
|
l = gf.read_language(self.lang)
|
||||||
for abs,cnc in self.lexed:
|
for abs,cnc in self.lexed:
|
||||||
|
|||||||
Reference in New Issue
Block a user