Added test for the new errors in DrawText elements.

This commit is contained in:
Salvador E. Tropea 2020-09-01 20:39:15 -03:00
parent 11cb826c06
commit ff6282eca1
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,17 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Text GLabel 1600 2300 2 50
$EndSCHEMATC

View File

@ -0,0 +1,17 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Text GLabel 1600 2300 2 50 BiDi ~ AA
$EndSCHEMATC

View File

@ -154,6 +154,14 @@ def test_sch_errors_bad_text():
setup_ctx('bad_text', 'Malformed .?Text.?')
def test_sch_errors_bad_text2():
setup_ctx('bad_text2', 'Missing .?Text.? shape')
def test_sch_errors_bad_text3():
setup_ctx('bad_text3', 'Not a number in .?Text.?')
def test_sch_errors_bad_wire():
setup_ctx('bad_wire', 'Malformed wire')