-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Параметры в таблицах + параметры дробные числа #156
Conversation
исправлена передача параметрах в таблицах closes #115
@@ -9,6 +9,11 @@ | |||
Когда я передаю параметр 5 | |||
Тогда я получаю параметр с типом "Число" | |||
|
|||
Сценарий: Параметр дробное число | |||
|
|||
Когда я передаю параметр 5,11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
разве по геркину это является числом?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nixel2007 я не нашел упоминаний о запрете такого числа 5,11 )
для локализаций это как раз возможно.
вообще синтаксис геркин явно не запрещает.
например, в онлайн-редакторе https://specflow.org/gherkin-editor как числа одинаково подсвечиваются и 5, и 5,11 и 5.20
@@ -716,7 +716,7 @@ | |||
ЭтоЧисловойПараметр = ЭтоЧисло(ЗначениеПараметра); | |||
ОписаниеПараметра = ?(ЭтоЧисловойПараметр, ВозможныеКлючиПараметров.Число, ВозможныеКлючиПараметров.Строка); | |||
Если ЭтоЧисловойПараметр Тогда | |||
ЗначениеПараметра = Число(ЗначениеПараметра); | |||
ЗначениеПараметра = Число(СтрЗаменить(ЗначениеПараметра, ",", ".")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
локалезависимо
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nixel2007 да, фактически этим кодом я и борюсь с локализацией (вместо запятой привожу к точке)
1скрипт все-таки строку-числа с точкой точно приведет к числу )
вроде бы так работает всегда.
исправлена передача параметрах в таблицах
closes #115