From c1e608361ed6f5f6b61236ffb6a1148a27efac1b Mon Sep 17 00:00:00 2001 From: rtwoo Date: Tue, 14 Nov 2023 16:24:44 -0700 Subject: [PATCH] Initial test case --- .gitignore | 2 ++ main.py | 2 ++ test_sample.py | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 main.py create mode 100644 test_sample.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b779168 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/__pycache__ +/.pytest_cache \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..c391566 --- /dev/null +++ b/main.py @@ -0,0 +1,2 @@ +def inc(x): + return x + 1 \ No newline at end of file diff --git a/test_sample.py b/test_sample.py new file mode 100644 index 0000000..93c1b0c --- /dev/null +++ b/test_sample.py @@ -0,0 +1,7 @@ +import main + +# content of test_sample.py + + +def test_answer(): + assert main.inc(3) == 4 \ No newline at end of file