FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
llama.cpp/tests/test-peg-parser.cpp at master · allozaur/llama.cpp · GitHub
allozaur
/
llama.cpp
Public
forked from
ggml-org/llama.cpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
llama.cpp
/
tests
/
test-peg-parser.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (21 loc) · 624 Bytes
Breadcrumbs
llama.cpp
/
tests
/
test-peg-parser.cpp
Copy path
File metadata and controls
26 lines (21 loc) · 624 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
include
<
cstdlib
>
#
include
<
string
>
#
include
<
iostream
>
#
include
"
peg-parser/tests.h
"
int
main
(
int
argc,
char
*argv[]) {
testing
t
(std::cout);
if
(argc >=
2
) {
t.
set_filter
(argv[
1
]);
}
const
char
* verbose =
getenv
(
"
LLAMA_TEST_VERBOSE
"
);
if
(verbose) {
t.
verbose
=
std::string
(verbose) ==
"
1
"
;
}
t.
test
(
"
basic
"
, test_basic);
t.
test
(
"
unicode
"
, test_unicode);
t.
test
(
"
json
"
, test_json_parser);
t.
test
(
"
gbnf
"
, test_gbnf_generation);
t.
test
(
"
serialization
"
, test_json_serialization);
t.
test
(
"
python-dict
"
, test_python_dict_parser);
return
t.
summary
();
}
Back
|
FazBrowse Home
|
New Git URL