From 7733dad6dbb7ed7815be2a0318e8e93e74766f2d Mon Sep 17 00:00:00 2001 From: bugdealer Date: Thu, 11 Aug 2022 14:02:22 +0300 Subject: [PATCH] Removed generator expression tests --- .../expressions/generator-expressions/gen-1.yaml | 15 --------------- .../expressions/generator-expressions/gen-2.yaml | 13 ------------- .../expressions/generator-expressions/gen-3.yaml | 7 ------- .../expressions/generator-expressions/gen-4.yaml | 14 -------------- .../expressions/generator-expressions/gen-5.yaml | 7 ------- 5 files changed, 56 deletions(-) delete mode 100644 transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-1.yaml delete mode 100644 transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-2.yaml delete mode 100644 transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-3.yaml delete mode 100644 transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-4.yaml delete mode 100644 transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-5.yaml diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-1.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-1.yaml deleted file mode 100644 index 99f4798fc..000000000 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-1.yaml +++ /dev/null @@ -1,15 +0,0 @@ -enabled: False -python: | - def test(): - checkStr = 'The First Message' - def my_gen(): - n = 1 - yield n - - n += 1 - yield n - - n += 1 - yield n - - return next(my_gen()) == 1 \ No newline at end of file diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-2.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-2.yaml deleted file mode 100644 index 42c3f84f8..000000000 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-2.yaml +++ /dev/null @@ -1,13 +0,0 @@ -enabled: False -python: | - def test(): - checkStr = 'Hello World!!!' - - def rev_str(): - length = len(checkStr) - for i in range(length - 1, -1, -1): - yield checkStr[i] - - resList = [] - [resList.append(i) for i in rev_str()] - return len(resList) == len(list(checkStr)) \ No newline at end of file diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-3.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-3.yaml deleted file mode 100644 index a00703bd5..000000000 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-3.yaml +++ /dev/null @@ -1,7 +0,0 @@ -enabled: False -python: | - def test(): - my_list = [10, 6, 6, 10] - - a = (x ** 2 for x in my_list) - return next(a) == 100 \ No newline at end of file diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-4.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-4.yaml deleted file mode 100644 index f755b0532..000000000 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-4.yaml +++ /dev/null @@ -1,14 +0,0 @@ -enabled: False -python: | - def test(): - def fibonacci_numbers(nums): - x, y = 0, 1 - for _ in range(nums): - x, y = y, x + y - yield x - - def square(nums): - for num in nums: - yield num ** 2 - - return sum(square(fibonacci_numbers(10))) == 4895 \ No newline at end of file diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-5.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-5.yaml deleted file mode 100644 index c1f325574..000000000 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/expressions/generator-expressions/gen-5.yaml +++ /dev/null @@ -1,7 +0,0 @@ -enabled: False -python: | - def test(): - my_list = [10, 3, 6, 10] - generator = (x**2 for x in my_list) - - return generator.__next__() == 100 \ No newline at end of file