From 6da4f1fffb82212b45c997daf7a1d871841384fe Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 22 Jun 2015 22:15:02 +0200 Subject: [PATCH] Static analsyis test for complex flow tests (filtering). --- test/static_analysis/branches.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/static_analysis/branches.py diff --git a/test/static_analysis/branches.py b/test/static_analysis/branches.py new file mode 100644 index 00000000..3916f86f --- /dev/null +++ b/test/static_analysis/branches.py @@ -0,0 +1,11 @@ +import random + +if random.choice([0, 1]): + x = '' +else: + x = 1 + +if x != 1: + x = x.upper() +else: + pass