Skip to content
Permalink
2556aee868
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
11 lines (8 sloc) 392 Bytes
import pytest
import sys
sys.path.append("./src/")
import rainbow_generator
import pearson
def test_generator():
d=rainbow_generator.generateTable(["test1", "test2", "test3"], lambda x: pearson.hashN(x,2), rainbow_generator.makeGuess, 20, 3, 6, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')
assert d=={b'fa': 'test1', b'=\xcd': 'test2', b'\x0b\n': 'test3'}