stream_test.go
changeset 11 48be1ae93fd4
equal deleted inserted replaced
10:f38b0ee7b1c1 11:48be1ae93fd4
       
     1 // Copyright 2011 The Go Authors.  All rights reserved.
       
     2 // Use of this source code is governed by a BSD-style
       
     3 // license that can be found in the LICENSE file.
       
     4 
       
     5 package xmpp
       
     6 
       
     7 import (
       
     8 	"testing"
       
     9 )
       
    10 
       
    11 func TestSaslDigest(t *testing.T) {
       
    12 	// These values are from RFC2831, section 4.
       
    13 	obs := saslDigestResponse("chris", "elwood.innosoft.com",
       
    14 		"secret", "OA6MG9tEQGm2hh", "OA6MHXh6VqTrRk",
       
    15 		"AUTHENTICATE", "imap/elwood.innosoft.com",
       
    16 		"00000001")
       
    17 	exp := "d388dad90d4bbd760a152321f2143af7"
       
    18 	assertEquals(t, exp, obs)
       
    19 }