Closed crwen closed 2 months ago
how can we write a unit test to test this problem?
how can we write a unit test to test this problem?
Here's the code that'll panic:
how can we write a unit test to test this problem?
Here's the code that'll panic:
Thank you very much for your contribution to the stability of tonbo! I have added this unit test to PR: https://github.com/tonbo-io/tonbo/pull/140
LevelStream::new
accepts a start index and a end index, which are both closed. Sothis_level_scopes
should return a right-closed index https://github.com/tonbo-io/tonbo/blob/b9b02a83ecca3513f728ca7a71052a7b9ec7c0ef/src/stream/level.rs#L76