def shamir_test(l, m, n):
	s = Shamir('english')
	seed = "Shamir's Secret Sharing Scheme!"[:l] # take first l characters
	shares = s.split(seed, m, n)
	print('original:', seed)
	print('shares:')
	for i in range(len(shares)):
		print('%2d :' % (i + 1), shares[i])
	shares = shares[:m] # take first m shares
	cmb = s.combine(shares)
	print ('combined:', cmb)
	if seed == cmb:
		print('TEST OK')
		print()
	else:
		print('TEST FAILED !!!')
		sys.exit(1)
dataset/ETHPy150Open trezor/python-mnemonic/mnemonic/test_shamir.py/shamir_test/original