Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
INF222 - V24 - Obligatory 2 - Skeleton
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mikhail.Barash
INF222 - V24 - Obligatory 2 - Skeleton
Commits
354b5672
Commit
354b5672
authored
1 year ago
by
Rolf Glomsrud
Browse files
Options
Downloads
Patches
Plain Diff
Removed tests.ts
parent
a894b3ff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package-lock.json
+1
-1
1 addition, 1 deletion
package-lock.json
src/tests.ts
+0
-26
0 additions, 26 deletions
src/tests.ts
with
1 addition
and
27 deletions
package-lock.json
+
1
−
1
View file @
354b5672
{
"name"
:
"INF222
_O2
"
,
"name"
:
"INF222
-Obligatory2-Skeleton
"
,
"lockfileVersion"
:
3
,
"requires"
:
true
,
"packages"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/tests.ts
deleted
100644 → 0
+
0
−
26
View file @
a894b3ff
import
{
interpret
}
from
"
./interpreter
"
;
const
tests
=
{
testPlus
:
()
=>
{
let
code
=
"
let a = 1[kg] + 2 [kg]
"
;
try
{
let
resultingEnv
=
interpret
(
code
);
console
.
assert
(
resultingEnv
.
env
.
get
(
"
a
"
)?.
unit
.
value
===
"
m
"
&&
resultingEnv
.
env
.
get
(
"
a
"
)?.
value
===
3
);
}
catch
{
console
.
log
(
"
Failed simple plus statement
"
);
}
},
testMinus
:
()
=>
{},
testLeftAssociativity
:
()
=>
{},
testParenthesis
:
()
=>
{},
testMultiplication
:
()
=>
{},
testDivision
:
()
=>
{},
};
export
function
runTests
()
{
tests
.
testPlus
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment