github.com/tursom/GoCollections@v0.3.10/collections/GoMap_test.go (about)

     1  /*
     2   * Copyright (c) 2022 tursom. All rights reserved.
     3   * Use of this source code is governed by a GPL-3
     4   * license that can be found in the LICENSE file.
     5   */
     6  
     7  package collections
     8  
     9  import (
    10  	"fmt"
    11  	"testing"
    12  
    13  	"github.com/tursom/GoCollections/lang"
    14  )
    15  
    16  func TestGoMap_get(t *testing.T) {
    17  	m := NewGoMap[lang.Int, int]()
    18  	for i := 0; i < 10; i++ {
    19  		m.Put(lang.Int(i), i+1)
    20  		fmt.Println(m.ToString().String())
    21  		fmt.Println(m)
    22  	}
    23  }