Skip to content

Commit

Permalink
extra tests for entryBoxes
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisteach committed Jan 5, 2017
1 parent 4111b0f commit dff0cc1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/widget_test.py
Expand Up @@ -86,8 +86,19 @@ def test_entries():
assert app.getEntry("se1") == EMPTY
assert app.getEntry("ae1") == EMPTY

app.setEntry("e1", TEXT_ONE)
app.setEntry("ne1", "-")
assert app.getEntry("ne1") == 0
app.setEntry("ne1", ".")
assert app.getEntry("ne1") == 0
app.setEntry("ne1", "0.0")
assert app.getEntry("ne1") == 0
app.setEntry("ne1", "-0.0")
assert app.getEntry("ne1") == 0
app.setEntry("ne1", ".")
assert app.getEntry("ne1") == 0

app.setEntry("ne1", NUM_ONE)
app.setEntry("e1", TEXT_ONE)
app.setEntry("se1", TEXT_ONE)
app.setEntry("ae1", TEXT_ONE)

Expand Down

0 comments on commit dff0cc1

Please sign in to comment.