<commit_before>/*
 *
 *
 */
package com.damnhandy.uri.template;

import java.util.LinkedHashMap;
import java.util.Map;

import org.junit.Test;

/**
 * A TestMultipleOperators.
 * 
 * @author <a href="<EMAIL>"><NAME></a>
 * @version $Revision: 1.1 $
 */
public class TestMultipleOperators
{

   private static final Map<String, Object> VALUES;

   static
   {
      VALUES = new LinkedHashMap<String, Object>();
      VALUES.put("group_id", "12345");
      VALUES.put("first_name", "John");
      VALUES.put("item_id", "yu780");
      VALUES.put("page", "5");
      VALUES.put("lang", "en");
      VALUES.put("format", "json");
      VALUES.put("q", "URI Templates");
   }
   
   @Test
   public void testMultiplePathOperators() 
   {
      String expression = "/base{/group_id,id}/pages{/page,lang}{?format,q}";
      UriTemplate t = UriTemplate.fromExpression(expression);
      String uri = t.expand(VALUES);
      System.out.println(uri);
   }<commit_msg>Modified assertion<commit_after>/*
 *
 *
 */
package com.damnhandy.uri.template;

import java.util.LinkedHashMap;
import java.util.Map;

import junit.framework.Assert;

import org.junit.Test;

/**
 * A TestMultipleOperators.
 * 
 * @author <a href="<EMAIL>"><NAME></a>
 * @version $Revision: 1.1 $
 */
public class TestMultipleOperators
{

   private static final Map<String, Object> VALUES;

   static
   {
      VALUES = new LinkedHashMap<String, Object>();
      VALUES.put("group_id", "12345");
      VALUES.put("first_name", "John");
      VALUES.put("item_id", "yu780");
      VALUES.put("page", "5");
      VALUES.put("lang", "en");
      VALUES.put("format", "json");
      VALUES.put("q", "URI Templates");
   }
   
   @Test
   public void testMultiplePathOperators() 
   {
      UriTemplate t = UriTemplate.fromTemplate("/base{/group_id,id}/pages{/page,lang}{?format,q}");
      String uri = t.expand(VALUES);
      Assert.assertEquals("/base/12345/pages/5/en?format=json&q=URI%20Templates", uri);
     
      
   }
{'fraction_non_alphanumeric': 0.172970247100353, 'fraction_numerical': 0.015128593040847202, 'mean_word_length': 3.285097192224622, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4740943', 'n_tokens_mistral': 708, 'n_tokens_neox': 670, 'n_words': 121}