Skip to content

Commit

Permalink
Include uncert. div. in valid numbers (fixes #686)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Aug 23, 2023
1 parent a1d7add commit 0c4c19e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to

## [Unreleased]

### Fixed
- Include uncertainty divider in number validation (see issue
[\#686](https://github.com/josephwright/siunitx/issues/686))

## [v3.3.2] - 2023-08-03

### Fixed
Expand Down
1 change: 1 addition & 0 deletions siunitx-number.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4696,6 +4696,7 @@
\l_@@_input_uncert_open_tl
\l_siunitx_number_input_sign_tl
\l_@@_input_uncert_sign_tl
\l_@@_input_uncert_divide_tl
\q_recursion_tail
\q_recursion_stop
}
Expand Down
2 changes: 2 additions & 0 deletions testfiles/siunitx-number.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,8 @@
\siunitx_if_number:nTF { +0.1 } { \TRUE } { \ERROR }
\siunitx_if_number:nTF { e10 } { \TRUE } { \ERROR }
\siunitx_if_number:nTF { 1 + ( ) } { \ERROR } { \FALSE }
\keys_set:nn { siunitx } { input-uncertainty-divider = ; }
\siunitx_if_number:nTF { 1.2(4;5) } { \TRUE } { \ERROR }
}

\TESTEXP { Testing~individual~tokens }
Expand Down
1 change: 1 addition & 0 deletions testfiles/siunitx-number.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2791,6 +2791,7 @@ TRUE
TRUE
TRUE
FALSE
TRUE
============================================================
============================================================
TEST 84: Testing individual tokens
Expand Down

0 comments on commit 0c4c19e

Please sign in to comment.