mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
WIP: Add gir.PartialClass
This commit is contained in:
parent
632e9d7df6
commit
6fdb12fd5d
17 changed files with 231 additions and 147 deletions
|
@ -90,6 +90,9 @@ class TestSamples(unittest.TestCase):
|
|||
raise MultipleErrors(warnings)
|
||||
except PrintableError as e:
|
||||
def error_str(error):
|
||||
if error.start is None:
|
||||
raise Exception("Error start/end range was never set")
|
||||
|
||||
line, col = utils.idx_to_pos(error.start + 1, blueprint)
|
||||
len = error.end - error.start
|
||||
return ",".join([str(line + 1), str(col), str(len), error.message])
|
||||
|
@ -157,6 +160,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample("strings")
|
||||
self.assert_sample("style")
|
||||
self.assert_sample("template")
|
||||
self.assert_sample("template_binding")
|
||||
self.assert_sample("template_no_parent")
|
||||
self.assert_sample("translated")
|
||||
self.assert_sample("uint")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue