Skip to content

Commit

Permalink
whitebox testing for count
Browse files Browse the repository at this point in the history
  • Loading branch information
taiwan-jjl committed Jan 14, 2022
1 parent 7340749 commit 3c220ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test_count_white.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# By Jyong-Jhih Lin
# Software Testing Project 2021 Aumumn period 2: itertools, python=3.9.7
# count(), whitebox


from itertools import count
import pytest
import sys
import decimal


# check prime path [1,2,3,2,3] for whitebox testing
def test_count_normal():
test = count(start=0, step=1)
assert next(test) == 0
assert next(test) == 1

0 comments on commit 3c220ee

Please sign in to comment.