Skip to content
Permalink
1b36ce17a1
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
13 lines (9 sloc) 425 Bytes
import pytest
import sys
sys.path.append("./src/")
import rainbow_generator
import pearson
flag="MzZwcx15NHQzOnxzcnI9cjk="
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'}