Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stronger tests would be useful to verify correctness of different implementations #17

Open
ssvb opened this issue Jan 16, 2024 · 1 comment

Comments

@ssvb
Copy link

ssvb commented Jan 16, 2024

  1. Assuming the German dictionary, here's a sample input for validating the count mode:
88888888888888888888888888888888888888888888888888

The expected output:

2342917122930
  1. Assuming the German dictionary, here's a sample input for validating the print mode:
05-2706438/830160--236690-2719//3706425909
88888888888888888888888888888888888888888888888999
0771----303573/////7683///-//719348230271939030499

The expected output:

05-2706438/830160--236690-2719//3706425909: 0 Arbeitslosenversicherungsbeitra"ge 9
0771----303573/////7683///-//719348230271939030499: 0 Bund es aus Bildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 Bund es mu"d Bildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 Bund es Ausbildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 kund es aus Bildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 kund es mu"d Bildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 kund es Ausbildungsfo"rderung 3 Gesetz 9
0771----303573/////7683///-//719348230271939030499: 0 Bundesausbildungsfo"rderungsgesetz 9

The tests listed above are valid according to the rules of https://flownet.com/ron/papers/lisp-java/instructions.html

And if we move from the German dictionary to an arbitrary dictionary up to 75000 words (as required by the rules), then I suspect that the following generator constructs something that is close to the absolutely worst possible case conforming to the rules of the study: #16 (comment)

@ssvb
Copy link
Author

ssvb commented Jan 16, 2024

If the tests are too harsh, then simply shortening the length of the 888..888 pattern makes them much less demanding.

@ssvb ssvb mentioned this issue Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant