Espeer5 / Trinary

A ternary ALU simulation
https://espeer5.github.io/Trinary/
MIT License
2 stars 0 forks source link

Test ALU Operations #23

Closed Espeer5 closed 1 year ago

Espeer5 commented 1 year ago

Testing of ALU Operations

Description:

Implements Mocha testing of all the operations of the ALU.

Content

Related issues

Todo

github-actions[bot] commented 1 year ago

PR Preview Action v1.4.4 :---: :rocket: Deployed preview to https://Espeer5.github.io/Trinary/pr-preview/pr-23/ on branch gh-pages at 2023-08-16 18:30 UTC

codecov-commenter commented 1 year ago

Codecov Report

Merging #23 (c634934) into main (95c7750) will increase coverage by 34.64%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main      #23       +/-   ##
===========================================
+ Coverage   61.01%   95.66%   +34.64%     
===========================================
  Files          13       13               
  Lines        1162     1176       +14     
  Branches        1        1               
===========================================
+ Hits          709     1125      +416     
+ Misses        453       51      -402     
Files Changed Coverage Δ
src/CPU/cpu.js 100.00% <ø> (+55.88%) :arrow_up:
src/CPU/adder.js 100.00% <100.00%> (+32.25%) :arrow_up:
src/CPU/alu.js 100.00% <100.00%> (+71.73%) :arrow_up:
src/TriArithmetic/shiftRot.js 100.00% <100.00%> (+33.33%) :arrow_up:

... and 5 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Espeer5 commented 1 year ago

Going to go ahead and merge. Will create issue as a reminder to add FBlock operation testing, but for now, it is enough to be adding the code coverage requirements, advancing repo coverage to over 95%, and building a structure for automatically generating testing data.