Skip to content
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

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

artbear
Copy link
Owner

@artbear artbear commented Nov 30, 2020

исправлена передача параметрах в таблицах

closes #115

исправлена передача параметрах в таблицах

closes #115
@@ -9,6 +9,11 @@
Когда я передаю параметр 5
Тогда я получаю параметр с типом "Число"

Сценарий: Параметр дробное число

Когда я передаю параметр 5,11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

разве по геркину это является числом?

Copy link
Owner Author

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 @@
ЭтоЧисловойПараметр = ЭтоЧисло(ЗначениеПараметра);
ОписаниеПараметра = ?(ЭтоЧисловойПараметр, ВозможныеКлючиПараметров.Число, ВозможныеКлючиПараметров.Строка);
Если ЭтоЧисловойПараметр Тогда
ЗначениеПараметра = Число(ЗначениеПараметра);
ЗначениеПараметра = Число(СтрЗаменить(ЗначениеПараметра, ",", "."));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

локалезависимо

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nixel2007 да, фактически этим кодом я и борюсь с локализацией (вместо запятой привожу к точке)

1скрипт все-таки строку-числа с точкой точно приведет к числу )
вроде бы так работает всегда.

artbear added a commit to kuntashov/1bdd that referenced this pull request Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants