Skip to content

Параметры в таблицах + параметры дробные числа#156

Merged
artbear merged 1 commit into
developfrom
number-fix-115
Nov 30, 2020
Merged

Параметры в таблицах + параметры дробные числа#156
artbear merged 1 commit into
developfrom
number-fix-115

Conversation

@artbear

@artbear artbear commented Nov 30, 2020

Copy link
Copy Markdown
Owner

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

closes #115

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

closes #115

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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

Comment thread src/gherkin-read.os
ОписаниеПараметра = ?(ЭтоЧисловойПараметр, ВозможныеКлючиПараметров.Число, ВозможныеКлючиПараметров.Строка);
Если ЭтоЧисловойПараметр Тогда
ЗначениеПараметра = Число(ЗначениеПараметра);
ЗначениеПараметра = Число(СтрЗаменить(ЗначениеПараметра, ",", "."));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

Неверный разбор таблицы данных фичи, если в строка таблицы есть число

2 participants