Files
textual/tests
Dave Pearson 7563d4cb7e Allow setting a new label when performing a clear on a Tree
See #1437 for background. While it would be ideal to allow for the complete
emptying of a Tree, the root node is required (and it's part of the
construction of a Tree). So, here, when clearing the Tree we optionally
allow for a new label to be given.

Ideally we'll also allow for fresh data to be provided too; but there's a
wrinkle there in knowing the difference between the data being None, and no
data being provided (so the current root's data being carried over).
Following the method of defaulting used in __init__ would cause problems. As
such, rather than roll all of this into one commit, this goes with the basic
requirement and the solution for data will follow.

Note this also starts some unit tests for the clearing of a Tree.
2023-02-01 12:33:36 +00:00
..
2023-01-30 12:34:35 +00:00
2022-10-13 11:15:15 +01:00
2023-01-26 16:10:13 +01:00
2022-10-27 17:43:02 +01:00
2021-07-05 20:37:54 +01:00
2023-01-30 17:24:15 +00:00
2022-09-20 16:33:07 +01:00
2023-01-09 13:58:25 +00:00
2023-01-26 16:10:13 +01:00
2022-10-29 10:03:26 +01:00
2023-01-26 16:10:13 +01:00
2022-12-21 14:57:25 +00:00
2022-10-13 11:15:15 +01:00
2022-12-28 15:53:58 +00:00
2022-11-09 17:23:28 +00:00
eof
2021-08-31 17:53:41 +01:00
2022-10-08 15:46:30 +01:00
2023-01-07 14:24:17 +00:00
2023-01-26 16:10:13 +01:00
2023-01-12 15:48:49 +00:00
2022-10-13 11:15:15 +01:00
2022-10-22 17:35:11 +01:00
2023-01-17 15:02:09 +00:00
2023-01-19 14:18:40 +00:00
2023-01-17 15:19:40 +00:00
eof
2021-08-31 17:53:41 +01:00
2022-12-21 15:17:27 +00:00
2023-01-09 13:57:13 +00:00
2023-01-23 18:00:44 +00:00
2022-07-29 10:28:50 +01:00
2023-01-31 11:12:47 +01:00
2023-01-09 14:00:52 +00:00
2023-01-16 11:06:13 +00:00
2022-10-13 11:15:15 +01:00
2023-01-19 15:29:50 +00:00
2023-01-17 10:29:19 +00:00
2022-12-29 10:13:37 +00:00
2023-01-26 16:10:13 +01:00
2023-01-09 13:57:49 +00:00
2023-01-18 14:51:50 +00:00
2023-01-25 12:00:51 +01:00
2023-01-02 21:59:33 +02:00