Permalink
Browse files

Updated testcases.

  • Loading branch information...
1 parent 7622b6c commit c0a039a9ba5f54450b9be8ea7baf00c13ef2f07d @Xorcerer committed Dec 18, 2013
Showing with 7 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +4 −2 longest-common-substring/gen_test_cases.py
  3. +1 −1 longest-common-substring/result.txt
View
@@ -2,3 +2,5 @@
*.out
*.result
*.dSYM
+*.result.txt
+
@@ -12,8 +12,10 @@ def gen_string_pair():
common_substring = random_str(random.randint(20, 100))
random_addition_str = lambda: random_str(random.randint(10, 20))
- str1 = random_addition_str() + common_substring + random_addition_str()
- str2 = random_addition_str() + common_substring + random_addition_str()
+ t1 = '%sA%sA%s'
+ t2 = '%sB%sB%s'
+ str1 = t1 % (random_addition_str(), common_substring, random_addition_str())
+ str2 = t2 % (random_addition_str(), common_substring, random_addition_str())
return (str1, str2), common_substring
@@ -19,7 +19,7 @@ nrvp0oFnCkWALVf7dW93DmwukHIBKjTl9WZxfl
cJcqWpfcukCeFgETwtTbNVy6BAdURBfO2A4RJvg7wP1YZ9rbQyE2C40
HXdJgAwkBeMGr3cKOjVEDZNAPsmknsghEGtmjTjYxxv36nOyC3GSJZFtyO9gJHbvAb9DytpUxeDqCx0B
8rp4zwF1q2qO4ko9xIkH29
-EmgLB31KnHSByXQSwKpCD
+EmgLB31KnHSByXQSwKpCDG
zoZn5vq9bdDjaTpUMfBbnS4rCkhQRUJDaFOjHggz7gd5
8uncPtpe8yvrKtqYe3v9ow3e3VRHEEBZj84vMeEwfuPzGS57NJyeGmUCjry1htPlXj0zg3GOb2FeK17LQv7eCg3f
w1QFGld9L45KaAVdoj3TMqldnq4OT4zF4zPXp2IqooFMquFERDwapbuZwoJOWb7t4bgf3gMFOZLwyc

0 comments on commit c0a039a

Please sign in to comment.