Cadence Virtuoso SKILL library
Project description
VIRTUE
Cadence Virtuoso SKILL++ library
Features:
- A standard library of packages with functions for common tasks
- A test framework modeled after pytest
- A TOML config file reader and writer
- A package import system that allows the library to define just a single top-level import table symbol that allows each package to be imported locally.
Example Test File
Note the package imports at the top
let(((Str Import['Str])
(Test Import['Test])
(Virtue Import['Virtue])
)
procedure(Test_emptyp()
assert(Str->emptyp(""))
assert(!Str->emptyp("test"))
)
procedure(Test_str2bool()
assert(Str->str2bool("true"))
assert(Str->str2bool("TRUE"))
assert(!Str->str2bool("false"))
)
procedure(Test_str2bool_error()
assert(!errset(Str->str2bool("Nothing")))
)
Test->RunFile(list(nil
'Test_emptyp Test_emptyp
'Test_str2bool Test_str2bool
'Test_str2bool_error Test_str2bool_error
)
?filepath Virtue->GetCurrentFilePath()
)
)
Prints out the following when ran in the CIW:
FILE: /path/to/file/test_Str.ils
passed: Test_emptyp
passed: Test_str2bool
passed: Test_str2bool_error
3 / 3 tests passed
Installation
Just load the "virtue.init.ils" from the CIW window or add the following to your .cdsinit file:
load("/path/to/repo/virtue/virtue.init.ils")
Reminder: The following will change your top-level interpreter to SKILL++:
toplevel('ils)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for virtue_skill-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c352a13a8157078181bb6991920781cb1388296188f5ea3f918d41271ec16451 |
|
MD5 | b29a656781e9581b08a1428f42927673 |
|
BLAKE2b-256 | e6640397cce281b25df41fbfdcf053698b06c36ed7e135f64080e81c96a0b643 |