<commit_before># Slider Field

- [Github Repo](https://github.com/twiro/slider)
- [Symphony Extensions](http://symphonyextensions.com/extensions/slider)


## Filter Modes

1. **is**
2. **less than**
4. **greater than**
6. **between**


## Sample Data – Single Values

1. `0`
2. `1`
3. `9`
4. `99`
5. `100`


## Tests – Single Values

###### Performed with Symphony CMS 2.3.1 + 2.4.0 and Slider Field 1.0

| Nr. | Filter Mode | Filter Value | Expected Result | DF | PF |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 1.1 | **is** | `0` | **1** | :white_check_mark: | … |
| 1.2 | **is** | `1` | **2** | :white_check_mark: | … |
| 1.3 | **is** | `99` | **4** | :white_check_mark: | … |
| 1.4 | **is** | `99, 100` | **4**, **5** | :white_check_mark: | … |
| 1.5 | **is** | `99 + 100` | – | :white_check_mark: | … |
| 2.1 | **less than** | `less than 0`  | – | :white_check_mark: | … |
| 2.2 | **less than** | `less than 10`  | **1**, **2**, **3** | :white_check_mark: | … |
| 2.3 | **less than** | `< 100` | **1**, **2**, **3**, **4** | :white_check_mark: | … |
| 3.1 | **greater than** | `greater than 0`  | **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 3.2 | **greater than** | `greater than 10`  | **4**, **5** | :white_check_mark: | … |
| 3.3 | **greater than** | `> 100` | – | :white_check_mark: | … |
| 4.1 | **between** | `0 to 1`  | **1**, **2** | :white_check_mark: | … |
| 4.2 | **between** | `0 to 10`  | **1**, **2**, **3** | :white_check_mark: | … |
| 4.3 | **between** | `0 to 100`  | **1**, **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 4.3 | **between** | `1-99`  | **2**, **3**, **4** | :white_check_mark: | … |

<sup>
<strong>DF</strong> = Datasource Filtering
<i>/</i>
<strong>PF</strong> = Publish Filtering
</sup>


## Sample Data – Value Range

1. `0-1`
2. `1-10`
3. `9-90`
4. `50-100`
5. `100-100`


## Tests – Value Range

###### Performed with Symphony CMS 2.3.1 + 2.4.0 and Slider Field 1.0

| Nr. | Filter Mode | Filter Value | Expected Result | DF | PF |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 1.1 | **is** | `0` | **1** | :white_check_mark: | … |
| 1.2 | **is** | `1` | **1**, **2** | :white_check_mark: | … |
| 1.3 | **is** | `99` | **4** | :white_check_mark: | … |
| 1.4 | **is** | `99, 100` | **4**, **5** | :white_check_mark: | … |
| 1.5 | **is** | `99 + 100` | **4** | :white_check_mark: | … |
| 2.1 | **less than** | `less than 0`  | – | :white_check_mark: | … |
| 2.2 | **less than** | `less than 10`  | **1** | :white_check_mark: | … |
| 2.3 | **less than** | `< 100` | **1**, **2**, **3** | :white_check_mark: | … |
| 3.1 | **greater than** | `greater than 0`  | **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 3.2 | **greater than** | `greater than 10`  | **4**, **5** | :white_check_mark: | … |
| 3.3 | **greater than** | `> 100` | – | :white_check_mark: | … |
| 4.1 | **between** | `0 to 1`  | **1** | :white_check_mark: | … |
| 4.2 | **between** | `0 to 10`  | – | :white_check_mark: | … |
| 4.3 | **between** | `9 to 10`  | **2**, **3** | :white_check_mark: | … |
| 4.4 | **between** | `50-75`  | **3**, **4** | :white_check_mark: | … |
| 4.4 | **between** | `0-100`  | – | :white_check_mark: | … |

<sup>
<strong>DF</strong> = Datasource Filtering
<i>/</i>
<strong>PF</strong> = Publish Filtering
</sup><commit_msg>Updated Tests for version 1.1<commit_after># Slider Field – Filtering Tests

- [Github Repo](https://github.com/twiro/slider)
- [Symphony Extensions](http://symphonyextensions.com/extensions/slider)


## Filter Modes

1. **is**
2. **less than**
4. **greater than**
6. **between**


## Sample Data – Single Values

1. `0`
2. `1`
3. `9`
4. `99`
5. `100`


## Tests – Single Values

###### Performed with Slider Field 1.1 and Symphony CMS 2.3.1 and 2.4.0 

| Nr. | Filter Mode | Filter Value | Expected Result | DF | PF |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 1.1 | **is** | `0` | **1** | :white_check_mark: | … |
| 1.2 | **is** | `1` | **2** | :white_check_mark: | … |
| 1.3 | **is** | `99` | **4** | :white_check_mark: | … |
| 1.4 | **is** | `99, 100` | **4**, **5** | :white_check_mark: | … |
| 1.5 | **is** | `99 + 100` | – | :white_check_mark: | … |
| 2.1 | **less than** | `less than 0`  | – | :white_check_mark: | … |
| 2.2 | **less than** | `less than 10`  | **1**, **2**, **3** | :white_check_mark: | … |
| 2.3 | **less than** | `< 100` | **1**, **2**, **3**, **4** | :white_check_mark: | … |
| 3.1 | **greater than** | `greater than 0`  | **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 3.2 | **greater than** | `greater than 10`  | **4**, **5** | :white_check_mark: | … |
| 3.3 | **greater than** | `> 100` | – | :white_check_mark: | … |
| 3.4 | **greater than** + **less than** | `> 1 + < 100` | **3**, **4** | :white_check_mark: | … |
| 4.1 | **between** | `0 to 1`  | **1**, **2** | :white_check_mark: | … |
| 4.2 | **between** | `0 to 10`  | **1**, **2**, **3** | :white_check_mark: | … |
| 4.3 | **between** | `0 to 100`  | **1**, **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 4.3 | **between** | `1-99`  | **2**, **3**, **4** | :white_check_mark: | … |
| 4.4 | **between** | `0-1, 99-100`  | **1**, **2**, **4**, **5** | :white_check_mark: | … |

<sup>
<strong>DF</strong> = Datasource Filtering
<i>/</i>
<strong>PF</strong> = Publish Filtering
</sup>


## Sample Data – Value Range

1. `0-1`
2. `1-10`
3. `9-90`
4. `50-100`
5. `100-100`


## Tests – Value Range

###### Performed with Slider Field 1.1 and Symphony CMS 2.3.1 and 2.4.0

| Nr. | Filter Mode | Filter Value | Expected Result | DF | PF |
| :--- | :--- | :--- | :--- | :--- | :--- |
| 1.1 | **is** | `0` | **1** | :white_check_mark: | … |
| 1.2 | **is** | `1` | **1**, **2** | :white_check_mark: | … |
| 1.3 | **is** | `99` | **4** | :white_check_mark: | … |
| 1.4 | **is** | `99, 100` | **4**, **5** | :white_check_mark: | … |
| 1.5 | **is** | `99 + 100` | **4** | :white_check_mark: | … |
| 2.1 | **less than** | `less than 0`  | – | :white_check_mark: | … |
| 2.2 | **less than** | `less than 10`  | **1** | :white_check_mark: | … |
| 2.3 | **less than** | `< 100` | **1**, **2**, **3** | :white_check_mark: | … |
| 3.1 | **greater than** | `greater than 0`  | **2**, **3**, **4**, **5** | :white_check_mark: | … |
| 3.2 | **greater than** | `greater than 10`  | **4**, **5** | :white_check_mark: | … |
| 3.3 | **greater than** | `> 100` | – | :white_check_mark: | … |
| 3.4 | **greater than** + **less than** | `> 1 + < 100` | **3** | :white_check_mark: | … |
| 4.1 | **between** | `0 to 1`  | **1** | :white_check_mark: | … |
| 4.2 | **between** | `0 to 10`  | – | :white_check_mark: | … |
| 4.3 | **between** | `9 to 10`  | **2**, **3** | :white_check_mark: | … |
| 4.4 | **between** | `50-75`  | **3**, **4** | :white_check_mark: | … |
| 4.4 | **between** | `0-100`  | – | :white_check_mark: | … |
| 4.5 | **between** | `0-1, 50-75`  | **1**, **3**, **4** | :white_check_mark: | … |
| 4.6 | **between** | `50-75 + 80-90`  | **3**, **4** | :white_check_mark: | … |

<sup>
<strong>DF</strong> = Datasource Filtering
<i>/</i>
<strong>PF</strong> = Publish Filtering
</sup>
{'fraction_non_alphanumeric': 0.3144716367237233, 'fraction_numerical': 0.07879473758664592, 'mean_word_length': 3.0772779700115342, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1900921', 'n_tokens_mistral': 3349, 'n_tokens_neox': 3057, 'n_words': 800}