-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Blizzard_inc <[email protected]> Co-authored-by: François G. Dorais <[email protected]>
- Loading branch information
1 parent
dc72dcd
commit 4d2cb85
Showing
6 changed files
with
126 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Batteries.Util.LibraryNote | ||
|
||
library_note "test" /-- | ||
1: This is a testnote for testing the library note feature of batteries. | ||
The `#help note` command should be able to find this note when imported. | ||
-/ | ||
|
||
library_note "test" /-- | ||
2: This is a second testnote for testing the library note feature of batteries. | ||
-/ | ||
|
||
library_note "temporary note" /-- | ||
1: This is a testnote whose label also starts with "te", but gets sorted before "test" | ||
-/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Batteries.Test.Internal.DummyLibraryNote | ||
|
||
library_note "test" /-- | ||
3: this is a note in a different file importing the above testnotes, | ||
but still imported by the actual testfile. | ||
-/ | ||
|
||
library_note "Test" /-- | ||
1: this is a testnote with a label starting with "Te" | ||
-/ | ||
|
||
library_note "Other" /-- | ||
1: this is a testnote with a label not starting with "te", | ||
so it shouldn't appear when looking for notes with label starting with "te". | ||
-/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import Batteries.Tactic.HelpCmd | ||
import Batteries.Test.Internal.DummyLibraryNote2 | ||
|
||
/-- | ||
error: Note not found | ||
-/ | ||
#guard_msgs in | ||
#help note "no note" | ||
|
||
/-- | ||
info: library_note "Other" | ||
* 1: this is a testnote with a label not starting with "te", | ||
so it shouldn't appear when looking for notes with label starting with "te". | ||
-/ | ||
#guard_msgs in | ||
#help note "Other" | ||
|
||
library_note "test"/-- | ||
4: This note was not imported, and therefore appears below the imported notes. | ||
-/ | ||
|
||
library_note "test"/-- | ||
5: This note was also not imported, and therefore appears below the imported notes, | ||
and the previously added note. | ||
-/ | ||
|
||
|
||
/-- | ||
info: library_note "temporary note" | ||
* 1: This is a testnote whose label also starts with "te", but gets sorted before "test" | ||
library_note "test" | ||
* 1: This is a testnote for testing the library note feature of batteries. | ||
The `#help note` command should be able to find this note when imported. | ||
* 2: This is a second testnote for testing the library note feature of batteries. | ||
* 3: this is a note in a different file importing the above testnotes, | ||
but still imported by the actual testfile. | ||
* 4: This note was not imported, and therefore appears below the imported notes. | ||
* 5: This note was also not imported, and therefore appears below the imported notes, | ||
and the previously added note. | ||
-/ | ||
#guard_msgs in | ||
#help note "te" |