Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
2a6cc0c6
Commit
2a6cc0c6
authored
Apr 27, 2016
by
Daniel Brown
Browse files
Adding in test files, building test folder up for continuous integration testing later
parent
b310015f
Pipeline
#789
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_deepcopying_references.py
→
test/test_
scripts/structural/test_
deepcopying_references.py
View file @
2a6cc0c6
...
...
@@ -30,10 +30,10 @@ assert(kat0.o1.f1 is not kat1.o1.f1)
assert
(
kat0
.
o1
.
f1
==
kat1
.
o1
.
f1
)
kat0
.
o1
.
f1
*=
2
kat0
.
o1
.
ph
i
1
*=
2
kat0
.
o1
.
ph
ase
1
*=
2
assert
(
isinstance
(
kat0
.
o1
.
f1
,
pykat
.
param
.
Param
))
assert
(
isinstance
(
kat0
.
o1
.
ph
i
1
,
pykat
.
param
.
Param
))
assert
(
isinstance
(
kat0
.
o1
.
ph
ase
1
,
pykat
.
param
.
Param
))
assert
(
kat0
.
o1
.
f1
!=
kat1
.
o1
.
f1
)
kat1
.
o1
.
num_demods
=
2
...
...
test/test_properties.py
→
test/test_
scripts/structural/test_
properties.py
View file @
2a6cc0c6
...
...
@@ -15,8 +15,8 @@ assert(kat.pdr.f1 == 100)
assert
(
type
(
kat
.
pdr
.
f1
)
is
pykat
.
param
.
Param
)
kat
.
pdr
.
phi1
=
"10u"
assert
(
kat
.
pdr
.
ph
i
1
==
1e-5
)
assert
(
type
(
kat
.
pdr
.
ph
i
1
)
is
pykat
.
param
.
Param
)
assert
(
kat
.
pdr
.
ph
ase
1
==
1e-5
)
assert
(
type
(
kat
.
pdr
.
ph
ase
1
)
is
pykat
.
param
.
Param
)
kat
.
m1
.
R
=
"10000u"
assert
(
kat
.
m1
.
R
==
0.01
)
...
...
@@ -27,7 +27,7 @@ kat = deepcopy(kat)
kat
.
m1
.
R
=
0.9
assert
(
kat
.
m1
.
R
==
0.9
)
kat
.
pdr
.
ph
i
1
=
20
assert
(
kat
.
pdr
.
ph
i
1
==
20
)
kat
.
pdr
.
ph
ase
1
=
20
assert
(
kat
.
pdr
.
ph
ase
1
==
20
)
print
"PASSED"
\ No newline at end of file
print
(
"PASSED"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment