Skip to content

Commit

Permalink
wasm/rna-transcription: 2nd iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Nov 28, 2023
1 parent 4abffa3 commit dcb5170
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 34 deletions.
4 changes: 2 additions & 2 deletions wasm/rna-transcription/coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1700605152781" clover="3.2.0">
<project timestamp="1700605152781" name="All files">
<coverage generated="1701157789972" clover="3.2.0">
<project timestamp="1701157789972" name="All files">
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
</project>
</coverage>
2 changes: 1 addition & 1 deletion wasm/rna-transcription/coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-11-21T22:19:12.779Z
at 2023-11-28T07:49:49.968Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
5 changes: 2 additions & 3 deletions wasm/rna-transcription/rna-transcription.wat
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@
(call $debug_print_i32u (local.get $length))

(if
(i32.eq
(i32.eqz
(local.get $length)
(i32.const 0)
) ;; eq
) ;; eqz
(then
(call $debug_print_str (global.get $debug_label_empty_offset) (global.get $debug_label_empty_length))
(call $debug_print_i32u (local.get $length))
Expand Down
56 changes: 28 additions & 28 deletions wasm/rna-transcription/run-tests-wasm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,35 @@ Running: js-beautify ./babel.config.js ./rna-transcription.spec.js
beautified babel.config.js - unchanged
beautified rna-transcription.spec.js - unchanged

real 0m0.084s
user 0m0.079s
real 0m0.080s
user 0m0.075s
sys 0m0.017s


==============================================================================

Exit code: 0

real 0m0.396s
user 0m0.380s
sys 0m0.083s
real 0m0.360s
user 0m0.350s
sys 0m0.070s

real 0m0.401s
user 0m0.381s
sys 0m0.086s
real 0m0.362s
user 0m0.352s
sys 0m0.070s

===============================================================================

Running: npm install

up to date in 507ms
up to date in 483ms

107 packages are looking for funding
run `npm fund` for details

real 0m0.659s
user 0m0.881s
sys 0m0.083s
real 0m0.640s
user 0m0.804s
sys 0m0.087s

===============================================================================

Expand Down Expand Up @@ -82,7 +82,7 @@ Running: npm run test -- --coverage
> test
> node --experimental-vm-modules node_modules/jest/bin/jest.js ./* --coverage

(node:15499) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(node:24061) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
console.log
dna
Expand Down Expand Up @@ -261,11 +261,11 @@ Running: npm run test -- --coverage

PASS ./rna-transcription.spec.js
Transcription
✓ empty rna sequence (19 ms)
✓ empty rna sequence (21 ms)
✓ transcribes cytosine to guanine (5 ms)
✓ transcribes guanine to cytosine (4 ms)
✓ transcribes thymine to adenine (4 ms)
✓ transcribes adenine to uracil (4 ms)
✓ transcribes adenine to uracil (5 ms)
✓ transcribes all dna nucleotides to their rna complements (4 ms)

----------|---------|----------|---------|---------|-------------------
Expand All @@ -276,33 +276,33 @@ All files | 0 | 0 | 0 | 0 |
Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 0.33 s, estimated 1 s
Time: 0.354 s, estimated 1 s
Ran all test suites matching /.\/HELP.md|.\/LICENSE|.\/README.md|.\/babel.config.js|.\/node_modules|.\/package-lock.json|.\/package.json|.\/rna-transcription.spec.js|.\/rna-transcription.wat|.\/run-tests-wasm.txt/i.

real 0m0.912s
user 0m0.848s
sys 0m0.133s
real 0m0.951s
user 0m0.921s
sys 0m0.131s


==============================================================================

Exit code: 0

real 0m1.203s
user 0m1.124s
sys 0m0.191s
real 0m1.256s
user 0m1.226s
sys 0m0.182s

real 0m1.206s
user 0m1.124s
sys 0m0.193s
real 0m1.258s
user 0m1.227s
sys 0m0.184s

===============================================================================

Running: misspell ./rna-transcription.wat

real 0m0.025s
user 0m0.026s
sys 0m0.014s
real 0m0.033s
user 0m0.032s
sys 0m0.020s

===============================================================================

Expand Down

0 comments on commit dcb5170

Please sign in to comment.