Divya Rani added the comment:
The function link is here:
https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/http/cookiejar.py#L521
The function returned true for "foo!bar.com" which is false positive and the
test case is taken from the list of inva
New submission from Divya Rani :
1. For input ".blah." output is "."
2. For input "..." output is "..."
results produced by the function are wrong according to the test suite provided
by guava.
1.
https://github.com/google/guava/blob/1e072a7922a0
Divya Rani added the comment:
import cookiejar
cookiejar.is_HDN("foo!bar.com")
Output:
True
cookiejar.is_HDN("woo.com.")
Output:
False
Test cases taken from:
1.
https://github.com/google/guava/blob/581ba1436ebaa54a7f5d0f1db8cc4da0ca72127e/android/guava-tests/test/c
Change by Divya Rani :
--
components: Library (Lib)
nosy: Divya Rani
priority: normal
severity: normal
status: open
title: is_HDN is returns false positive and false negative value for two test
cases respectively
type: behavior
versions: Python 3.6