Merge pull request #3 from Trivernis/develop

Develop
pull/9/head
Trivernis 4 years ago committed by GitHub
commit 985f368d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
name = "asciimath-rs"
description = "AsciiMath parser"
repository = "https://github.com/trivernis/asciimath-rs"
version = "0.4.0"
version = "0.4.1"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
readme = "README.md"

@ -352,7 +352,7 @@ mod tests {
//#[test]
fn it_writes_mathml() {
let str_expression =
"sqrt 1 in NN implies 2^4 + sum_(k = 1)^3 - ((1),(2)) [[2, 3 + 3],[4, 5]]";
"alpha sqrt 1 in NN implies 2^4 + sum_(k = 1)^3 - ((1),(2))[[2, 3 + 3],[4, 5]] + alpha";
let expression = parse(str_expression.to_string());
fs::write(
"test-files/test.html",
@ -368,7 +368,7 @@ mod tests {
#[bench]
fn bench_tokenizer(b: &mut Bencher) {
let expression = "sum_(iiiiiiiii=1)^n i^3=((n(n+1))/2)^2";
let expression = "sqrt 1 in NN implies 2^4 + sum_(k = 1)^3 - ((1),(2)) [[2, 3 + 3],[4, 5]] (((((((nesting)))))))";
b.iter(|| parse(expression.to_string()));
}
}

@ -267,7 +267,6 @@ impl TreeParser {
self.step();
self.step();
expressions.push(self.parse_expression());
self.step();
if let Token::Grouping(Grouping::LBracket) = self.current_token() {
self.step();

Loading…
Cancel
Save