# One of set

{% hint style="warning" %}
Данный функционал доступен только для владельцев [платной подписки](https://testmace.com/pricing/) TestMace
{% endhint %}

Интерфейс **One of set assertion**-а выглядит следующим образом:

![](/files/-M2TdZRBLLkKf9TKnCLD)

Данный assertion служит, чтобы проверить что актуальное значение принимает одно значение из заданного множества. В поле `Expected value type` указывается какого типа значения будут сравниваться - строки, числа, JSON-объекты.

В поле с лейблом `Expected value` указывается список возможных ожидаемых значений.

Флаг `Use negative statement` служит для отрицания описанного утверждения, т.е. актуальное значение не должно содержаться в указанном множестве.

### Исправление ошибок

Алгоритм исправления ошибок зависит от состояния флага `Use negative statement`:

* false - в список добавляется актуальное значение.
* true - из списка удаляется актуальное значение.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-ru.testmace.com/node-types/assertion/one-of-set-assertion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
