Comments (7)
@wodeni I've set up the testing infrastructure. See the main comment in this issue for more information. You're welcome to start writing tests for the parsers! I haven't written any for the Substance, Style, or Server modules yet, and indeed adding tests for them would be a very useful form of documentation.
from penrose.
@wodeni Also, regarding the revised parser, two of the examples here seem to be failing due to parser issues.
from penrose.
@wodeni Do you know if I can get the label sizes (and any other object info sent by snap) without running the server? As of now, in mainRetFinal
, since the optimization doesn't interact with snap, the label sizes are zero, which makes the regression tests inconsistent with what shows up in the browser.
from penrose.
The label size is dependent on the font and font size used in client.js
. Remember initially we assumed the letters to be monospaced but right now they are not due to the current font (palatino). Any chance to let the server run at least once?
from penrose.
I would be fine with running the server during the tests. Can we write a version of the server that terminates and returns a result (or several results, if we want to run multiple tests)?
from penrose.
I was trying to get Travis CI working with our repo and found that the tests now do not compile. The reason might be the changes in Substance module (?). In any case, there are some tests to could add to the test suite:
- DSLL parsing
- Substance Core language
- Substance type checking
- (future) Style type checking
from penrose.
Closing now that we have a working test suite in TS.
from penrose.
Related Issues (20)
- bboxFromPath expected pathData to be nonempty HOT 1
- Support specifying initial value to varying values.
- Style Selectors on Nonexistent Function Names
- Ensuring consistency between successive diagrams HOT 5
- Cannot share gists with empty programs in the IDE
- Example at https://penrose.cs.cmu.edu/docs/ref/api does not compile
- Error when parsing floating-point numbers in Substance
- Improper handling of `Prop`-typed expressions in Substance HOT 1
- Nested function calls in Substance
- Multiple bugs related to tracking state changes when saving drafts and workspaces in the editor HOT 1
- UX improvements for saving/editing in the editor
- Incorrect handling of indexed sets with flipped ranges HOT 2
- Style `toString` functionality HOT 2
- Run in non-browser environments HOT 4
- Document arrowhead types
- Impossible n-gon example broken
- `saveWorkspaceEffect` in editor functionality should be split based on whether state update should be immediate or debounced
- `AutoLabel` on Substance types
- Calling `random` with varying or computed values results in uncaught errors in the IDE
- Using Substance variables not declared in Style header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penrose.