View Revisions: Issue #15532
Summary | 15532: Show warnings when implicit alphabetical compare is used in expressions | ||
---|---|---|---|
Revision | 2019-11-05 13:00 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
Should also work in the same way for subquestion relevance equations. All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number inside the string. The manual entry should recommend users to use strcmp when comparing strings alphabetically, and to use intval/floatval with <, >, <=, >= when comparing numbers numerically. The delivery should include functional and unit tests of the scenarios above. Delivery should be done as a pull request on github. |
||
Revision | 2019-11-05 12:07 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
Should also work in the same way for subquestion relevance equations. All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcmp when comparing strings alphabetically, and to use intval/floatval with <, >, <=, >= when comparing numbers numerically. The delivery should include functional and unit tests of the scenarios above. Delivery should be done as a pull request on github. |
||
Revision | 2019-11-05 11:59 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcmp when comparing strings alphabetically, and to use intval/floatval with <, >, <=, >= when comparing numbers numerically. The delivery should include functional and unit tests of the scenarios above. Delivery should be done as a pull request on github. |
||
Revision | 2019-11-05 11:55 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcmp when comparing strings alphabetically, and to use intval/floatval with <, >, <=, >= when comparing numbers numerically. The delivery should include functional and unit tests of the scenarios above. |
||
Revision | 2019-11-05 11:54 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcmp when comparing strings alphabetically, and to use intval/floatval with <, >, <=, >= when comparing numbers numerically. |
||
Revision | 2019-11-05 11:49 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcomp when comparing strings. |
||
Revision | 2019-11-05 11:49 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcomp when comparing strings. |
||
Revision | 2019-11-05 11:49 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcomp when comparing strings. |
||
Revision | 2019-11-05 11:48 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake by survey designers when they actually want numerical compare. Problem: "2" < "18" is evaluated differently in PHP and JS. This feature will NOT fix evaluation, but instead show warnings when compare is used on strings. Scenarios:
All scenarios above should also happen with "A10" or "qwerty" strings. It doesn't have to be a number. The manual entry should recommend users to use strcomp when comparing strings. |
||
Revision | 2019-11-05 11:38 by ollehar | ||
Description | EM has no warning system. If an error is reported, the expression stops execution. We need warnings for alphabetical compare, which can be used by mistake. |