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

Фикс проверки для #78 #79

Merged
merged 3 commits into from
Mar 3, 2021
Merged

Conversation

rsimkin
Copy link
Contributor

@rsimkin rsimkin commented Feb 27, 2021

No description provided.

@fetinin
Copy link
Contributor

fetinin commented Mar 2, 2021

Спасибо за участие в развитии проекта! Добавь пожалуйста тест в compare_test.go, по аналогии с существующими тестами на регулярки и замержим.

@rsimkin
Copy link
Contributor Author

rsimkin commented Mar 2, 2021

Добавил, посмотри, пожалуйста

func TestCompareArraysWithRegexMixedTypes(t *testing.T) {

arrayExpected := []string{"2", "$matchRegexp([0-9]+)"}
arrayActual := []interface{}{"2", "123"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Кажется тут 123 как число должно быть передано. Кейс со строкой и ранее должен был работать

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Да, прошу прощения, исправил

@fetinin fetinin added the patch release as patch label Mar 3, 2021
@fetinin fetinin merged commit 2fec63b into lamoda:master Mar 3, 2021
@github-actions
Copy link

github-actions bot commented Mar 3, 2021

🚀 PR was released in v1.3.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release as patch released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants