This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
80 lines
1.5 KiB
Text
80 lines
1.5 KiB
Text
|
|
#eval "abc"
|
|
|
|
/- some "a" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next;
|
|
it₁.extract it₂
|
|
|
|
/- some "" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
it₁.extract it₁
|
|
|
|
/- none -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next;
|
|
it₂.extract it₁
|
|
|
|
/- some "abc" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next.next.next.prev.next;
|
|
it₁.extract it₂
|
|
|
|
/- some "bcde" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator.next;
|
|
let it₂ := it₁.next.next.next.next;
|
|
it₁.extract it₂
|
|
|
|
/- some "abcde" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next.next.next.next.next;
|
|
it₁.extract it₂
|
|
|
|
/- some "ab" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let s₂ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := s₂.mkIterator.next.next;
|
|
it₁.extract it₂
|
|
|
|
/- none -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let s₂ := "abhde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := s₂.mkIterator.next.next;
|
|
it₁.extract it₂
|
|
|
|
/- none -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next.setCurr 'a';
|
|
it₁.extract it₂
|
|
|
|
/- some "a" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := it₁.next.setCurr 'b';
|
|
it₁.extract it₂
|
|
|
|
/- some "a" -/
|
|
#eval
|
|
let s₁ := "abcde";
|
|
let it₁ := s₁.mkIterator;
|
|
let it₂ := (it₁.next.setCurr 'a').setCurr 'b';
|
|
it₁.extract it₂
|