## Testing the Impossible: Asserting Several Values At Once

23. March, 2009

So you want to check several values at once, maybe because that helps you to locate the error more easily. Simple:

```int v1 = list1.size();
int v2 = list2.size();
int v3 = list3.size();

assertEquals (
"list1=5\n"
+ "list2=2\n"
+ "list3=0\n"
, "list1="+v1+"\n"
+ "list2="+v2+"\n"
+ "list3="+v3+"\n"
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7800098,"math_prob":0.98120767,"size":295,"snap":"2021-43-2021-49","text_gpt3_token_len":103,"char_repetition_ratio":0.19243987,"word_repetition_ratio":0.0,"special_character_ratio":0.41694915,"punctuation_ratio":0.16129032,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9590791,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-28T13:45:07Z\",\"WARC-Record-ID\":\"<urn:uuid:d5cf78ad-cc33-4f8e-a6c9-7e775289d980>\",\"Content-Length\":\"75949\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cd63fe22-47a2-4c4f-b006-fc0cae4c97f1>\",\"WARC-Concurrent-To\":\"<urn:uuid:ba1c44e0-3430-4b22-ba5c-d185cc8e6ffb>\",\"WARC-IP-Address\":\"192.0.78.12\",\"WARC-Target-URI\":\"https://blog.pdark.de/2009/03/23/\",\"WARC-Payload-Digest\":\"sha1:T2EK5TLJEE2IT5R6V3EZ6HPVZGAOGSUY\",\"WARC-Block-Digest\":\"sha1:NVDO5G35B4XZBI5KVSSQYFVD7TOGEUD5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588341.58_warc_CC-MAIN-20211028131628-20211028161628-00624.warc.gz\"}"}