FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SRL-JavaScript/test/cache-test.js at master · SimpleRegex/SRL-JavaScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
SimpleRegex
/
SRL-JavaScript
Public archive
Notifications
You must be signed in to change notification settings
Fork
13
Star
139
Code
Issues
1
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SRL-JavaScript
/
test
/
cache-test.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (19 loc) · 615 Bytes
Breadcrumbs
SRL-JavaScript
/
test
/
cache-test.js
Copy path
File metadata and controls
24 lines (19 loc) · 615 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
'use strict'
const
assert
=
require
(
'assert'
)
const
Cache
=
require
(
'../lib/Language/Helpers/Cache'
)
const
Interpreter
=
require
(
'../lib/Language/Interpreter'
)
describe
(
'Cache'
,
(
)
=>
{
it
(
'Basic'
,
(
)
=>
{
const
re
=
{
}
Cache
.
set
(
'test'
,
re
)
assert
.
deepEqual
(
Cache
.
get
(
'test'
)
,
re
)
}
)
it
(
'In interpreter'
,
(
)
=>
{
const
RE
=
/
(?:
a
)
/
g
const
query
=
new
Interpreter
(
'Literally "a"'
)
assert
.
deepEqual
(
query
.
get
(
)
,
RE
)
const
query2
=
new
Interpreter
(
'Literally "a"'
)
assert
.
notEqual
(
query2
,
RE
)
assert
(
query
!==
query2
)
}
)
}
)
Back
|
FazBrowse Home
|
New Git URL