diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-28 06:17:58 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-28 06:17:58 -0400 |
commit | b7fc90dca7bed9f5dffe615a4fdba1dac9ea57d5 (patch) | |
tree | 625dc523ea6968b286ed96a6849d7af9b4aa336c /tests/gold | |
parent | daee486d28d25eae6748873b3aae823e39035809 (diff) | |
download | python-coveragepy-git-b7fc90dca7bed9f5dffe615a4fdba1dac9ea57d5.tar.gz |
test: add a annotate test, and simplify the logic
Diffstat (limited to 'tests/gold')
-rw-r--r-- | tests/gold/annotate/mae/mae.py,cover | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/gold/annotate/mae/mae.py,cover b/tests/gold/annotate/mae/mae.py,cover new file mode 100644 index 00000000..ca086e93 --- /dev/null +++ b/tests/gold/annotate/mae/mae.py,cover @@ -0,0 +1,10 @@ +> def f(x): +> if x == 1: +> print("1") +> else: +> print("2") + +> if f(1): +! print("nope") +> if f(2): +! print("nope") |