8N9KT
b7cd440144
fix private functions test
2022-07-28 18:35:56 +02:00
8N9KT
7d6ecdf645
add test remove-links-for-each-level-of-the-namespaces
2022-07-28 15:27:59 +02:00
Gabriel Horner
6a64cdf4b3
Fix tag completion at start of line or whitespace before cursor
2022-07-26 20:47:36 +08:00
Gabriel Horner
bc69e7d5a1
Silence noisy parsing tests
...
Added :verbose option to repo-handler/parse-files-and-load-to-db!
2022-07-26 20:47:36 +08:00
Gabriel Horner
5f8a4ed0bf
Don't autocomplete tags within backtick Fix #6135
...
Also fix autocompleting while cursor is part of a word
2022-07-26 20:47:36 +08:00
Gabriel Horner
f5bc4c12bd
Remove stray :focus test flag
2022-07-25 13:53:27 -04:00
8N9KT
66108ac9e4
add test for get-pages-that-mentioned-page
...
- add test for get-pages-that-mentioned-page with show-journal paramenter
- comment deleted
2022-07-25 17:55:42 +02:00
Martin Scott
1d0fa763a5
Revised format directives and mixed number format
...
Also changed output of non-decimal numbers to use base prefixes.
2022-07-19 10:25:26 +01:00
Martin Scott
7c11de885b
Add fraction display mode
...
Support for showing results as fractions (mixed numbers or improper) and entering mixed numbers.
2022-07-18 01:04:48 +01:00
Martin Scott
a4b79ffe4f
Fix tests
...
Compare output strings based on input lines.
2022-07-18 00:49:59 +01:00
Martin Scott
70c04e34bf
Add operations, display formats, constants and bases
...
New operations:
- factorial operator `!`;
- modulo operator `mod`.
Constants added:
- `PI`
- `E`
New display format controls:
- `:fix <places>` display format;
- `:sci <places>` display format;
- `:norm <display-precision>` display format;
- `:hex`, `:oct`, `:bin` and`:dec` display formats.
New number formats:
- Enter hexadecimal, octal and binary numbers using `0x`, `0o` and `0b` prefixes respectively.
Bugs fixed:
- Loss of precision when supplying numbers in scientific notation.
2022-07-15 19:46:32 +01:00
playerofgames
8e2aa8415c
Calculator: bug fixes for issue #5917 , and feature additions ( #5918 )
...
* Calculator: bug fixes and feature additions
- Fix order of operations for negation and exponentiation;
- Support non-integer powers;
- Improve number parsing;
- Support comments;
- Add maths functions;
- More permissive variable naming;
- Store last result in 'last' variable.
* Fix lint warning
* Preserve last value across comments and empty lines
* Fix lint warning
* Use BigNumber operations to maintain precision
* Add conditional around pow call
* Split up long test
* Remove duplicate tests
2022-07-07 09:38:37 -04:00
Tienson Qin
139075e679
fix: suggestions from gabriel
2022-07-07 01:42:16 +08:00
Tienson Qin
ecb2024c14
fix: lint warnings
2022-07-07 01:42:16 +08:00
Tienson Qin
49acb54178
feat: add properties as linked references
2022-07-07 01:42:16 +08:00
Jonas Diemer
385113f535
Adding tests for rounding errors
2022-07-06 19:55:49 +08:00
Tienson Qin
ec8109f8d0
Add more outliner core tests
2022-06-16 07:29:07 +08:00
Tienson Qin
58bf6ee640
fix: random block could be empty
2022-06-15 15:47:23 +08:00
Tienson Qin
a88a3c0405
fix: outliner core failed tests
2022-06-15 15:38:40 +08:00
Gabriel Horner
17d2462343
Move rules into db dep as it's useful for external apps
...
- rules is already used by logseq-query and will be useful for
nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
more importantly discourages independent libraries from depending on
external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
deps.
2022-06-10 15:39:11 +08:00
Gabriel Horner
6608537909
Move logseq.graph-parser.db* namespaces to their own dep
...
Also add its own CI file
2022-06-10 15:39:11 +08:00
Tienson Qin
f4f1ff1ba2
fix: outdent blocks and re-enable outliner tests
...
related to #5604
2022-06-08 13:06:10 +08:00
Tienson Qin
09a9cda59c
fix: re-enable outliner core random tests
2022-06-07 01:25:55 +08:00
Tienson Qin
4ff98966da
fix: copy paste
...
related to #5561
2022-06-06 13:21:57 +08:00
Tienson Qin
f49a28fa7b
Merge pull request #5420 from logseq/enhance/graph-parser-part-four
...
Enhance: Finish up graph-parser
2022-06-02 10:00:30 +08:00
Tienson Qin
5f21e2d07e
fix: move blocks
2022-06-01 12:56:39 +08:00
Gabriel Horner
83a4e62bfd
Merge branch 'master' into enhance/graph-parser-part-four
2022-05-30 10:18:34 -04:00
Tienson Qin
3c886f4330
Merge pull request #5374 from jonasdiemer/calc-pretty-floats
...
Calculator: improved output of float numbers
2022-05-30 18:19:26 +08:00
Tienson Qin
cc735fffc7
fix: tests
2022-05-29 16:31:17 +08:00
Gabriel Horner
b142327491
Finish up logseq.graph-parser
...
- Parser now parses all graph files like the app does, not just pages and journals.
This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner
1e299052ce
Setup cljs tests for graph-parser
...
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner
15b8e5e9df
Setup CI jobs that are only for graph-parser
...
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner
4813d903d5
Move graph-parser to its own dir
2022-05-26 18:04:45 -04:00
Gabriel Horner
2b48d95493
Move frontend db namespaces that graph-parser depends on
...
graph-parser should be independent of the app
2022-05-26 18:04:45 -04:00
Gabriel Horner
e999ebc149
Automatically set extract-options correctly
...
- Removed state paths [:config :text-formats], [:config :img-formats]
and [:me :settins :date-formatter] as they have been unused since
their introduction in 2020
- Converted incorrect js/Error refs
- Also merged db.config test helpers
2022-05-26 18:04:45 -04:00
Gabriel Horner
11d3d5b3cd
Remove unused :me/* attributes
...
These were removed in b3f67c69b1 .
Also removed related, unused spec
2022-05-26 18:04:45 -04:00
Gabriel Horner
89d73bc178
Reuse starting db conn
...
Also move circular dep hack to ns that both nbb and cljs can use
2022-05-26 18:04:45 -04:00
Gabriel Horner
3bc2479181
First pass at main graph-parser ns
...
- Copied tests pass!
- Still a number of TODOs left
2022-05-26 18:04:45 -04:00
Tienson Qin
e2359c61f0
chore: disable random-inserts and random-deletes tests
2022-05-24 23:42:31 +08:00
Tienson Qin
ab662fa67d
chore: disable random-moves testing for now
2022-05-24 23:31:26 +08:00
Andelf
356d80d603
fix(test): test condition
2022-05-24 17:22:49 +08:00
Jonas Diemer
f047f58990
Adjusted test to work with BigNums
2022-05-23 15:00:25 +02:00
Gabriel Horner
b9bbd0c605
Finish migrating extract to nbb
2022-05-13 15:47:54 -04:00
Gabriel Horner
a832564782
Migrate most of extract ns to nbb
2022-05-13 11:52:35 -04:00
Gabriel Horner
b1e226745d
Finish migration block ns to nbb
2022-05-12 16:58:26 -04:00
Gabriel Horner
2c725ca5af
Remove unused test namespaces
...
frontend.react was only used in a test and never used elsewhere
2022-05-12 16:57:28 -04:00
Gabriel Horner
b83f6bbd19
Migrate half the block deps to be nbb compatible
2022-05-12 16:57:28 -04:00
Gabriel Horner
22ddae8998
Move graph-parser related block code to proper ns and nbb migration wip
2022-05-12 16:57:28 -04:00
Gabriel Horner
112e6e2d97
Test second nbb ns thanks to upstream nbb fix :)
2022-05-11 12:33:17 -04:00
Gabriel Horner
44bc0e8f40
Add a few more mldoc unit tests
...
Also remove local integration test
2022-05-10 20:22:48 -04:00