I'm reading something and the consider the following example:
Define: $$\chi(x) = \mathbb{1}_{[0,1/2]}-\mathbb{1}_{[1/2,1]}$$ and extend periodically to $\mathbb{R}$. Let $u_j = \chi(jx)$ on $(0,1)$. Then $u_j \rightharpoonup 0$ in $L^p(0,1)$ but $u_j$ does not converge in norm to $0$ on $L^p(0,1)$.
I'm getting this mixed up though, I am not getting weak convergence. What am I doing wrong in the following calculations?
For weak convergence, let $g \in L^q(0,1)$ consider: $$\int_{[0,1]}u_jg = \int_{\{x|u_j(x) > 0\}}u_jg+\int_{\{x|u_j(x) = 0\}}u_jg+ \int_{\{x|u_j(x) < 0\}}u_jg$$ If I choose $g$ to be the indicator function of all irrationals on $(0,1)$, as $j$ increments, won't the value of this integral keep bouncing around without a limit? (Consider an irrational number like $1/\pi$, every new dyadic approximation will send the number to 1 or -1, this is happening for all irrationals)