Skip to content

Commit 2b3b1bb

Browse files
authored
Dev (#32)
### Bug fixes + Don't check empty key/value when initializing Structure
1 parent bd2a5bb commit 2b3b1bb

File tree

6 files changed

+16
-37
lines changed

6 files changed

+16
-37
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<div align="center"><h1>Changelog</h1></div>
22

3+
## [0.0.51](https://github.com/tanloong/neosca/releases/tag/0.0.51) (23 August 2023)
4+
5+
### Bug fixes
6+
7+
+ Don't check empty key/value when initializing Structure
8+
39
## [0.0.50](https://github.com/tanloong/neosca/releases/tag/0.0.50) (23 August 2023)
410

511
### Bug fixes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ BibTeX
414414

415415
```BibTeX
416416
@misc{tan2022neosca,
417-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.50},
417+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.51},
418418
author = {Long Tan},
419419
howpublished = {\url{https://github.com/tanloong/neosca}},
420420
year = {2022}
@@ -429,7 +429,7 @@ year = {2022}
429429
APA (7th edition)
430430
</summary>
431431

432-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.50) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
432+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.51) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
433433

434434
</details>
435435

@@ -439,7 +439,7 @@ APA (7th edition)
439439
MLA (9th edition)
440440
</summary>
441441

442-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.50, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
442+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.51, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
443443

444444
</details>
445445

README_zh_cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ BibTeX
404404

405405
```BibTeX
406406
@misc{tan2022neosca,
407-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.50},
407+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.51},
408408
author = {Long Tan},
409409
howpublished = {\url{https://github.com/tanloong/neosca}},
410410
year = {2022}
@@ -419,7 +419,7 @@ year = {2022}
419419
APA (7th edition)
420420
</summary>
421421

422-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.50) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
422+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.51) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
423423

424424
</details>
425425

@@ -429,7 +429,7 @@ APA (7th edition)
429429
MLA (9th edition)
430430
</summary>
431431

432-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.50, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
432+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.51, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
433433

434434
</details>
435435

README_zh_tw.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ BibTeX
404404

405405
```BibTeX
406406
@misc{tan2022neosca,
407-
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.50},
407+
title = {NeoSCA: A Fork of L2 Syntactic Complexity Analyzer, version 0.0.51},
408408
author = {Long Tan},
409409
howpublished = {\url{https://github.com/tanloong/neosca}},
410410
year = {2022}
@@ -419,7 +419,7 @@ year = {2022}
419419
APA (7th edition)
420420
</summary>
421421

422-
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.50) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
422+
<pre>Tan, L. (2022). <i>NeoSCA</i> (version 0.0.51) [Computer software]. Github. https://github.com/tanloong/neosca</pre>
423423

424424
</details>
425425

@@ -429,7 +429,7 @@ APA (7th edition)
429429
MLA (9th edition)
430430
</summary>
431431

432-
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.50, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
432+
<pre>Tan, Long. <i>NeoSCA</i>. version 0.0.51, GitHub, 2022, https://github.com/tanloong/neosca.</pre>
433433

434434
</details>
435435

neosca/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python3
22
# -*- coding=utf-8 -*-
33

4-
__version__ = "0.0.50"
4+
__version__ = "0.0.51"

tests/test_structure_counter.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,33 +53,6 @@ def test_init(self):
5353
"value_source": "non-None",
5454
}
5555
)
56-
self.assertRaises(
57-
ValueError,
58-
Structure,
59-
**{
60-
"name": "S",
61-
"description": "sentence",
62-
"tregex_pattern": "",
63-
}
64-
)
65-
self.assertRaises(
66-
ValueError,
67-
Structure,
68-
**{
69-
"name": "S",
70-
"description": "sentence",
71-
"dependency_pattern": "",
72-
}
73-
)
74-
self.assertRaises(
75-
ValueError,
76-
Structure,
77-
**{
78-
"name": "S",
79-
"description": "sentence",
80-
"value_source": "",
81-
}
82-
)
8356

8457
def test_numeric_op(self):
8558
s1 = Structure("W")

0 commit comments

Comments
 (0)